<script lang="ts" setup>
import Chapter from './Catalog/Chapter.vue'

defineProps<{ play?: boolean }>()

const {videoChapterList} = $(useVideo())

</script>

<template>
    <view :scroll-y="true" w-full>
        <Chapter v-for="(chapter, idx) in videoChapterList" :key="idx" class="px-3.75" :chapter="chapter"
                 :expand="idx < 3"
                 :index="idx" :play="play"/>
    </view>
</template>
